package com.gzhryc.system.dao.db;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Id;
import com.gzhryc.jdbc.annotaion.Table;
import com.gzhryc.jdbc.annotaion.UniqueKey;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色菜单
 * @author 张浩
 * @version 2016-9-1
 */
@Table(name="sys_role_menu")
public class RoleMenu implements Serializable{

	private static final long serialVersionUID = 1L;

	@Id
	protected Long id;

	@UniqueKey(name="menu_role")
	@Column(name="menu_id")
	protected Long menuId;

	@UniqueKey(name="menu_role")
	@Column(name="role_id")
	protected Long roleId;
	
	@Column(name="update_date",autoUpdateTime=true)
	protected Date updateDate;
	
	@Column(name="create_date")
	protected Date createDate;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getMenuId() {
		return menuId;
	}
	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}
	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
